/**
 * All right reserved@Raygo 2022~2030
 */

package com.raygo.runner.core.entity;

import java.util.List;

/**
 * 步骤项
 *
 * @author Raygo
 * @since 2022年5月21日
 */
public class Step {
    /**
     * 名称
     */
    private String name;

    /**
     * 使能
     */
    private boolean enable;

    /**
     * 关键项
     */
    private boolean key;

    /**
     * 组件名称
     */
    private String componentName;

    /**
     * 组件编号
     */
    private int componentIndex;

    /**
     * 方法名称
     */
    private String method;

    /**
     * 参数列表
     */
    private List<Object> params;

    /**
     * 判断条件
     */
    private String judgeString;

    /**
     * Get judgeString value
     *
     * @return the judgeString
     */
    public String getJudgeString() {
        return judgeString;
    }

    /**
     * Set judgeString to judgeString
     *
     * @param judgeString the judgeString to set
     */
    public void setJudgeString(String judgeString) {
        this.judgeString = judgeString;
    }

    /**
     * 重试次数
     */
    private int retry = 1;

    /**
     * Get name value
     *
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * Set name to name
     *
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Get enable value
     *
     * @return the enable
     */
    public boolean isEnable() {
        return enable;
    }

    /**
     * Set enable to enable
     *
     * @param enable the enable to set
     */
    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    /**
     * Get key value
     *
     * @return the key
     */
    public boolean isKey() {
        return key;
    }

    /**
     * Set key to key
     *
     * @param key the key to set
     */
    public void setKey(boolean key) {
        this.key = key;
    }

    /**
     * Get component value
     *
     * @return the component
     */
    public String getComponent() {
        return componentName;
    }

    /**
     * Set component to component
     *
     * @param component the component to set
     */
    public void setComponent(String component) {
        this.componentName = component;
    }

    /**
     * Get method value
     *
     * @return the method
     */
    public String getMethod() {
        return method;
    }

    /**
     * Set method to method
     *
     * @param method the method to set
     */
    public void setMethod(String method) {
        this.method = method;
    }

    /**
     * Get params value
     *
     * @return the params
     */
    public List<Object> getParams() {
        return params;
    }

    /**
     * Set params to params
     *
     * @param params the params to set
     */
    public void setParams(List<Object> params) {
        this.params = params;
    }

    /**
     * Get retry value
     *
     * @return the retry
     */
    public int getRetry() {
        return retry;
    }

    /**
     * Set retry to retry
     *
     * @param retry the retry to set
     */
    public void setRetry(int retry) {
        this.retry = retry;
    }

    /**
     * Get componentIndex value
     *
     * @return the componentIndex
     */
    public int getComponentIndex() {
        return componentIndex;
    }

    /**
     * Set componentIndex to componentIndex
     *
     * @param componentIndex the componentIndex to set
     */
    public void setComponentIndex(int componentIndex) {
        this.componentIndex = componentIndex;
    }
}
